import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import App from './App.vue'
import router from './router'
//前置路由
import "virtual:svg-icons-register";
import './permission'
import icon from "@/components/icon/index.vue";
import elementIcons from "@/components/icon/svgicon.js";
import * as echarts from "echarts";
import  directive from "./directive";


const app = createApp(App)
app.config.globalProperties.$echarts = echarts;
app.use(ElementPlus);
app.use(elementIcons);
app.component("Svg-icon", icon);
app.use(createPinia())
app.use(router)
directive(app);
app.mount('#app')
